import { Application } from "egg";

export default (app: Application) => {
  const { router, controller } = app;
  router.get("/api/packages", controller.package.list);
  router.get("/api/version/test/packages", controller.package.findAll);
  router.put("/api/package/promote/:id", controller.package.promote);
  router.put("/api/package/:id", controller.package.update);
  router.post("/api/package/:id", controller.package.create);
};
